<?php /* Smarty version Smarty-3.1.13, created on 2013-07-22 16:48:40
         compiled from "C:\xampp\htdocs\new3\application\view\trabalho_area\edit.tpl" */ ?>
<?php /*%%SmartyHeaderCode:158151ed41a36d06f2-93184746%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'a2384ad3fd6038e6f093289a9f81ba1848761771' => 
    array (
      0 => 'C:\\xampp\\htdocs\\new3\\application\\view\\trabalho_area\\edit.tpl',
      1 => 1374504349,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '158151ed41a36d06f2-93184746',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.13',
  'unifunc' => 'content_51ed41a3812863_63226660',
  'variables' => 
  array (
    'header' => 0,
    'value1' => 0,
    'field1' => 0,
    'listaT' => 0,
    'row' => 0,
    'value2' => 0,
    'field2' => 0,
    'listaA' => 0,
    'msgEdit' => 0,
    'footer' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_51ed41a3812863_63226660')) {function content_51ed41a3812863_63226660($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ($_smarty_tpl->tpl_vars['header']->value, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

<form method="post">
	<label for=""></label>
    <select name="trabalho">
    	<option value="<?php echo $_smarty_tpl->tpl_vars['value1']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['field1']->value;?>
</option>
        <?php  $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['row']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['listaT']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['row']->key => $_smarty_tpl->tpl_vars['row']->value){
$_smarty_tpl->tpl_vars['row']->_loop = true;
?>
        	<option value="<?php echo $_smarty_tpl->tpl_vars['row']->value['cod_trabalho'];?>
"><?php echo $_smarty_tpl->tpl_vars['row']->value['titulo'];?>
</option>
        <?php } ?>
    </select><br />
    <select name="area">
    	<option value="<?php echo $_smarty_tpl->tpl_vars['value2']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['field2']->value;?>
</option>
        <?php  $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['row']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['listaA']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['row']->key => $_smarty_tpl->tpl_vars['row']->value){
$_smarty_tpl->tpl_vars['row']->_loop = true;
?>
        	<option value="<?php echo $_smarty_tpl->tpl_vars['row']->value['cod_area'];?>
"><?php echo $_smarty_tpl->tpl_vars['row']->value['nome_area'];?>
</option>
        <?php } ?>
    </select><br />
    <input type="submit" name="salvar" value="salvar" />
</form>
<div align="center">
	<?php echo $_smarty_tpl->tpl_vars['msgEdit']->value;?>

</div>
<?php echo $_smarty_tpl->getSubTemplate ($_smarty_tpl->tpl_vars['footer']->value, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
<?php }} ?>